﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReportFlat.DataAccess;

namespace ReportFlat.bussiness
{
    public class BusSystem : BaseBus
    {
        public static string getValue(string key){
            DAOAssist dao = new DAOAssist();
            t_system sys = dao.Get<t_system>("FKey='" + key + "'");
            return sys == null ? "" : sys.FValue;
            dao.CloseSession();
        }

        public static string getValue(DAOAssist dao,string key)
        {
            t_system sys = dao.Get<t_system>("FKey='" + key + "'");
            return sys == null ? "" : sys.FValue;
        }
    }
}
